//============================================================================
// Name        : Util_Library.cpp
// Author      : roamer
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;
#include "ui.h"
#include "test.h"
#undef main
int main(int argc, char** argv)
{
	int iExitCode = EXIT_FAILURE;
	try
	{
		UI::UI_Application app;
		app.Init();
		TestView view;
		app.Exec();
		iExitCode = app.ExitCode();
	}
	catch (UI::UI_Ex_Base& e)
	{
		cerr << "Unhandled wGui exception : " << e.std_what() << endl;
		exit(EXIT_FAILURE);
	}
	catch (exception& e)
	{
		cerr << "Unhandled std exception : " << e.what() << endl;
		exit(EXIT_FAILURE);
	}
	catch (...)
	{
		cerr << "Unhandled exception." << endl;
		exit(EXIT_FAILURE);
	}
	exit (iExitCode);
	return 0;
}
